/*
 *  scoreBoard  - ImageFileManager.h
 *  Copyright 2011 W. Reckman. All rights reserved.
 */
#ifndef IMAGE_FILE_MANAGER_H
#define IMAGE_FILE_MANAGER_H

#include "BoardModel.h"

class EventArgsPhotoboothFile;
class ScoreBoardApp;


class ImageFileManager {
public:
	typedef std::vector<BoardModel::PlayerInfo> vec_PlayerInfo;
	
	ImageFileManager( const ScoreBoardApp& appRef_ );
	
	vec_PlayerInfo& getQueuedInfoItems();
	
	void onNewPhotoboothFile( EventArgsPhotoboothFile& ev_ );
	
private:
	Settings& s;
	const ScoreBoardApp& appRef;
	
	vec_PlayerInfo incompleteInfoItems;
	vec_PlayerInfo queuedInfoItems;
	
	bool parseFilename( const string& name, BoardModel::PlayerInfo& qp );
};

#endif /* ! IMAGE_FILE_MANAGER_H */
